home *** CD-ROM | disk | FTP | other *** search
- Path: informatik.tu-muenchen.de!ganterth
- From: ganterth@mathematik.tu-muenchen.de (Thomas Ganter)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: BatchFile Params
- Date: 31 Jan 1996 13:09:19 GMT
- Organization: Math. Institut der TU Muenchen
- Distribution: world
- Message-ID: <1996Jan31.140919@mathematik.tu-muenchen.de>
- References: <DM1KJo.7z4@info.swan.ac.uk>
- NNTP-Posting-Host: sunbulirsch11.mathematik.tu-muenchen.de
- X-newsreader: xrn 7.00
- To: cs9h3kmk@Swansea.ac.uk
-
- In article <DM1KJo.7z4@info.swan.ac.uk>, your.E-Mail.name@Swansea.ac.uk (Your Name Here) writes:
- |> Hi there,
- |>
- |> can somebody please tell me how to pass command line parameters into
- |> a batch file
- |>
- |> For example on the PC, the first parameter is %1, 2nd is %2 etc...
- |> (BUT HOW DO YOU DO THIS ON THE AMIGA???)
-
- Ever heard of .KEY? I have. I'm not that big a scripter, but here is
- what I recall from what I read in the Manuals:
-
- It's much simpler and more flexible than anything you can do on PCs.
- You simply make the first line of your Script ".KEY " followd by a
- standard ReadArgs()-Style parameter description (although i seem to
- recall that there are problems with \M), and then refer to the
- Arguments via "(NAME)". You can redefine the Brackets using the
- .BRA and .KET directive. You also can give Strings to be used
- as default using "(NAME$default)" and lots more.
-
- Refer to the AmigaDOS Manual for defails. The things I explained I wrote
- from memory, so there is no guarantee that i have everything right.
-
- |> This would make my life a hell of a lot easier if there is a way,
- |>
- |> I've tried $1,$2, etc
- |>
-
-
- - Thomas
-
- ------------------------------------------------------------------------------
- Thomas Ganter Student der Mathematik
- Postweg 3 email: ganterth@mathematik.tu-muenchen.de
- 83209 Prien am Chiemsee FAX : (0) 8051 - 63179
- Bavaria, Germany Phone: (0) 8051 - 61895 & 62054
- ------------------------------------------------------------------------------
- Amiga Developer (ETG 249) - A3000/14Megs/550MB HD/PicassoII
- ------------------------------------------------------------------------------
-
- Mathematicians are like Frenchmen: whenever you say something to them,
- they translate it into their own language, and at once it is something
- entirely different. J. W. v. Goethe
-
-